package com.ch03.Exception;
import com.ch03.UserBuy.*;

/**
 * @author Swetha
 *
 */

public class UserByException extends Exception {
	
	private String message;
	private UserBuy uBuy;

	public UserByException(String msg, UserBuy userBuy)
	{
		message = msg;
		uBuy = userBuy;
	}

	public String getMessage() {
		return message + ". $" + uBuy.getShortAmount() + " more required to proceed with the transaction";
	}

	public void setMessage(String message) {
	this.message = message;
	}

}
